package com.dibang.app.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.dibang.app.R;
import com.dibang.app.mvp.base.BaseActivity;
import com.dibang.app.mvp.util.ViewUtil;
import com.dibang.app.operation.control.abs.LoginSmsControl;
import com.dibang.app.operation.control.impl.LoginSmsControlImpl;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by wxl on 2019/7/19.
 */

public class LoginSmsActivity extends BaseActivity<LoginSmsControl,LoginSmsControlImpl> {

    @BindView(R.id.login_sms_mobile_text_view)
    TextView mobileView;

    @BindView(R.id.activity_title_id)
    TextView titleView;

    @Override
    protected int onCreateBindViewLayoutId(@Nullable Bundle savedInstanceState) {
        return R.layout.activity_sms_login_layout;
    }

    @Override
    protected View onCreateBindViewUpdate(int layoutId, @Nullable Bundle savedInstanceState) {
        return ViewUtil.generateActivityViewContainerTitleView(this, layoutId,R.color.translucent_color);
    }

    @Override
    protected void onCreateBindViewChanged(@Nullable Bundle savedInstanceState) {
        ButterKnife.bind(this);
        mobileView.setText(getIntent().getStringExtra("mobile"));
        titleView.setText("验证码登录");
    }
}
